import App from './App'
import card from 'components/card.vue'
import mySwiper from 'components/mySwiper.vue'
Vue.component('card',card);
Vue.component('mySwiper',mySwiper);

import * as http from 'common/request/http.js' // http请求接口
import * as utils from 'common/utils/utils.js' // 工具文件
import store from 'common/storage/index.js' // vuex，不需要的可以自行删除
import storage from 'common/storage/storage.js' // 缓存文件
import config from 'common/config/config.js' // 配置

Vue.prototype.$store = store
Vue.prototype.$storage = storage
Vue.prototype.$http = http
Vue.prototype.$utils = utils
Vue.prototype.$config = config


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()

import uView from "node_modules/uview-ui"
Vue.use(uView)
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif